/**
 * Created by Blink on 2017/8/18.
 * component base
 * if not use component can extend react component
 */

import React from 'react';
import BlinkTypes from '../util/blink.prop.types';
import {Themes} from '../blink.ui.param';

export default class ComponentBase extends React.Component {
    static propTypes = {
        color: BlinkTypes.theme
    };

    get _componentName() {

    }

    get _theme() {
        return Themes[this._componentName]
    }

    get _color() {
        if (this._theme) {
            return this._theme[this.props.color];
        }
    }

    render() {

    }
}